package com.newx.test.sensitive.controller;

import com.newx.limit.annotation.NewxLimit;
import com.newx.sensitive.utils.JsonMapper;
import com.newx.test.sensitive.entity.UserEntity;
import com.newx.test.util.R;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

/**
 * @author yxl
 * @date 2024/7/19 0019 17:33
 */
@RequestMapping("/sensitive")
@RestController
public class SensitiveController {

    @GetMapping("/test1")
    public R getUserList() {
        UserEntity userEntity = UserEntity.builder()
                .userNamePattern("张三四")
                .userNameLength("张三四")
                .passwordPattern("122345676543")
                .passwordLength("122345676543")
                .idCardPattern("432145167805126789")
                .idCardLength("432145167805126789")
                .fixedPhonePattern("076512344321")
                .fixedPhoneLength("076512344321")
                .mobilePattern("15678900987")
                .mobileLength("15678900987")
                .addressPattern("北京市东城区东华门街道北京香江戴斯酒店")
                .addressLength("北京市东城区东华门街道北京香江戴斯酒店")
                .emailPattern("23345@qq.com")
                .emailLength("23345@qq.com")
                .bankCardPattern("6212262502009182455")
                .bankCardCustomizePattern("6212262502009182455")
                .bankCardLength("6212262502009182455")
                .build();
        return R.ok().data(userEntity);
    }
}
